import request from '@/utils/request'

export function getClientInfo() {
  return request({
    url: '/api/login/sts',
    method: 'get',
    headers: {
      isToken: false
    },
  })
}

// 查询用户列表
export function getAppUserList(query) {
  return request({
    url: '/system/appUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户详情
export function getAppUserDetail(userId, query) {
  return request({
    url: `/system/appUser/get/${userId}`,
    method: 'get',
    params: query
  })
}

// 获取用户换脸详情
export function getUserChangeFaceDetail(userId) {
  return request({
    url: `/system/appUser/userChangeFaceDetail${userId}`,
    method: 'get'
  })
}

// 获取用户换脸资产数据
export function getUserChangeFaceList(query) {
  return request({
    url: '/system/appUser/userChangeFaceResource',
    method: 'get',
    params: query
  })
}

// 冻结用户
export function freezeAppUser(userId) {
  return request({
    url: `/system/appUser/freezeUser/${userId}`,
    method: 'post'
  })
}

// 取消用户会员
export function cancelVipUser(userId) {
  return request({
    url: `/system/appUser/cancel/${userId}`,
    method: 'post'
  })
}

// 移除用户
export function removeAppUser(ids) {
  return request({
    url: `/system/appUser/remove/${ids}`,
    method: 'post'
  })
}

// 查询功能列表
export function getFunctionList(query) {
  return request({
    url: '/system/function/list',
    method: 'get',
    params: query
  })
}

// 保存功能信息
export function saveFunctionInfo(data) {
  return request({
    url: '/system/function/save',
    method: 'post',
    data: data
  })
}

// 显示或隐藏功能
export function showFunction(functionId) {
  return request({
    url: `/system/function/show/${functionId}`,
    method: 'get'
  })
}

// 查询会员列表
export function getMemberList(query) {
  return request({
    url: '/system/member/list',
    method: 'get',
    params: query
  })
}

// 保存会员
export function saveMemberInfo(data) {
  return request({
    url: '/system/member/save',
    method: 'post',
    data: data
  })
}

// 批量移除会员
export function removeMemberInfo(ids) {
  return request({
    url: `/system/member/remove/${ids}`,
    method: 'get'
  })
}

// 会员设为选中
export function setMemberInfo(memberId) {
  return request({
    url: `/system/member/setDefault/${memberId}`,
    method: 'get'
  })
}

// 编辑体验会员
export function saveExperienceMemberInfo(data) {
  return request({
    url: '/system/member/updateExperienceMember',
    method: 'post',
    data: data
  })
}

// 查询视频单条收费详情
export function getVideoChargeDetail(query) {
  return request({
    url: '/system/member/getUpdateVideoSingleMemberDetail',
    method: 'get',
    params: query
  })
}

// 编辑视频单条收费
export function saveVideoCharge(data) {
  return request({
    url: '/system/member/updateVideoSingleMember',
    method: 'post',
    data: data
  })
}

// 查询任务列表
export function getTaskList() {
  return request({
    url: '/system/task/taskList',
    method: 'get',
  })
}

// 编辑任务信息
export function saveTaskInfo(data) {
  return request({
    url: '/system/task/updateTask',
    method: 'post',
    data: data
  })
}

// 获取任务链接分享内容
export function getTaskLinkShareInfo(taskId) {
  return request({
    url: `/system/task/taskShare/${taskId}`,
    method: 'get'
  })
}

// 保存任务链接分享内容
export function saveTaskLinkShareInfo(data) {
  return request({
    url: '/system/task/taskShareSetting',
    method: 'post',
    data: data
  })
}

// 获取任务图文分享内容
export function getTaskSoftwareShareInfo(taskId) {
  return request({
    url: `/system/task/taskCodeShare/${taskId}`,
    method: 'get'
  })
}

// 保存任务图文分享内容
export function saveTaskSoftwareShareInfo(data) {
  return request({
    url: '/system/task/taskCodeShareSetting',
    method: 'post',
    data: data
  })
}

// 查看订单列表
export function getUserOrderList(query) {
  return request({
    url: '/system/userMemberOrder/list',
    method: 'get',
    params: query
  })
}

// 查询订单详情
export function getUserOrderDetail(orderId) {
  return request({
    url: `/system/userMemberOrder/get/${orderId}`,
    method: 'get'
  })
}

// 移除订单信息
export function removeUserOrder(orderId) {
  return request({
    url: `/system/userMemberOrder/remove/${orderId}`,
    method: 'get'
  })
}

// 查询渠道管理列表
export function getChannelList(query) {
  return request({
    url: '/system/channelManager/list',
    method: 'get',
    params: query
  })
}

// 查询渠道管理列表
export function getTemplateChannelList(query) {
  return request({
    url: '/system/template/getChannelList',
    method: 'get',
    params: query
  })
}

// 保存渠道信息
export function saveChannelInfo(data) {
  return request({
    url: '/system/channelManager/save',
    method: 'post',
    data: data
  })
}

// 移除渠道信息
export function removeChannelInfo(ids) {
  return request({
    url: `/system/channelManager/remove/${ids}`,
    method: 'post'
  })
}

// 查询社友乐园列表
export function getClubJobList(query) {
  return request({
    url: '/system/clubJob/list',
    method: 'get',
    params: query
  })
}

// 保存社友乐园信息
export function saveClubJobInfo(data) {
  return request({
    url: '/system/clubJob/save',
    method: 'post',
    data: data
  })
}

// 移除社友乐园信息
export function removeClubJobInfo(ids) {
  return request({
    url: `/system/clubJob/remove/${ids}`,
    method: 'post',
  })
}

// 查询社友乐园统计数据
export function getClubJobData(query) {
  return request({
    url: '/system/clubJobData/list',
    method: 'get',
    params: query
  })
}

// 查询社友乐园设置项
export function getClubJobSetInfo() {
  return request({
    url: '/system/clubJobSetting/get',
    method: 'get'
  })
}

// 保存社友乐园设置项
export function saveClubJobSetInfo(data) {
  return request({
    url: '/system/clubJobSetting/save',
    method: 'post',
    data: data
  })
}

// 查询用户协议&隐私政策的相关信息
export function getAppInfo(type) {
  return request({
    url: `/system/appInfo/get/${type}`,
    method: 'get'
  })
}

// 保存用户协议&隐私政策信息
export function saveAppInfo(data) {
  return request({
    url: '/system/appInfo/save',
    method: 'post',
    data: data
  })
}

// 查询版本管理信息
export function getAppVersionList(query) {
  return request({
    url: '/system/appVersionInfo/list',
    method: 'get',
    params: query
  })
}

// 保存版本信息
export function saveAppVersion(data) {
  return request({
    url: '/system/appVersionInfo/save',
    method: 'post',
    data: data
  })
}

// 移除版本信息
export function removeAppVersion(ids) {
  return request({
    url: `/system/appVersionInfo/remove/${ids}`,
    method: 'post'
  })
}

// 查询联系方式列表
export function getAppContactList(query) {
  return request({
    url: '/system/contactWay/list',
    method: 'get',
    params: query
  })
}

// 保存联系方式信息
export function saveAppContactInfo(data) {
  return request({
    url: '/system/contactWay/save',
    method: 'post',
    data: data
  })
}

// 移除联系方式
export function removeAppContact(ids) {
  return request({
    url: `/system/contactWay/remove/${ids}`,
    method: 'post'
  })
}

// 查询图文分享内容
export function getSoftwareShareInfo() {
  return request({
    url: '/system/imageTextShare/get',
    method: 'post'
  })
}

// 保存图文分享内容
export function saveSoftwareShareInfo(data) {
  return request({
    url: '/system/imageTextShare/save',
    method: 'post',
    data: data
  })
}

// 查询链接分享内容
export function getLinkShareInfo() {
  return request({
    url: '/system/urlShare/get',
    method: 'post'
  })
}

// 保存链接分享内容
export function saveLinkShareInfo(data) {
  return request({
    url: '/system/urlShare/save',
    method: 'post',
    data: data
  })
}

// 查询推广中心列表
export function getAppSpreadCenterList(query) {
  return request({
    url: '/system/spreadCenter/list',
    method: 'get',
    params: query
  })
}

// 保存推广中心信息
export function saveAppSpreadCenterInfo(data) {
  return request({
    url: '/system/spreadCenter/save',
    method: 'post',
    data: data
  })
}

// 移除推广中心信息
export function removeAppSpreadCenterInfo(ids) {
  return request({
    url: `/system/spreadCenter/remove/${ids}`,
    method: 'get'
  })
}

// 获取推广中心设置信息
export function getSpreadCenterSetInfo() {
  return request({
    url: '/system/spreadCenterSetting/get',
    method: 'get'
  })
}

// 保存推广中心设置信息
export function saveSpreadCenterSetInfo(data) {
  return request({
    url: '/system/spreadCenterSetting/save',
    method: 'post',
    data: data
  })
}

// 查询支付宝支付设置信息
export function getAlipayInfo() {
  return request({
    url: '/system/aliPaySetting/get',
    method: 'get',
  })
}

// 保存支付宝支付设置信息
export function saveAlipayInfo(data) {
  return request({
    url: '/system/aliPaySetting/save',
    method: 'post',
    data: data
  })
}

// 查询微信支付设置信息
export function getWxpayInfo() {
  return request({
    url: '/system/wxPaySetting/get',
    method: 'get'
  })
}

// 保存微信支付设置信息
export function saveWxpayInfo(data) {
  return request({
    url: '/system/wxPaySetting/save',
    method: 'post',
    data: data
  })
}

// 查询启动页列表
export function getBootPageList(query) {
  return request({
    url: '/system/bootPage/list',
    method: 'get',
    params: query
  })
}

// 保存启动页
export function saveBootPage(data) {
  return request({
    url: '/system/bootPage/save',
    method: 'post',
    data: data
  })
}

// 移除启动页
export function removeBootPage(ids) {
  return request({
    url: `/system/bootPage/remove/${ids}`,
    method: 'post'
  })
}

// 查询广告管理其他数据列表
export function getAdvertList(query) {
  return request({
    url: '/system/openAdvertising/list',
    method: 'get',
    params: query
  })
}

// 保存广告管理其他数据
export function saveAdvertInfo(data) {
  return request({
    url: '/system/openAdvertising/save',
    method: 'post',
    data: data
  })
}

// 移除广告管理其他数据
export function removeAdvertInfo(ids) {
  return request({
    url: `/system/openAdvertising/remove/${ids}`,
    method: 'get'
  })
}

// 查询广告管理其他数据设置信息
export function getAdvertSetInfo(query) {
  return request({
    url: '/system/advertisingSetting/get',
    method: 'get',
    params: query
  })
}

// 保存广告管理其他数据设置信息
export function saveAdvertSetInfo(data) {
  return request({
    url: '/system/advertisingSetting/save',
    method: 'post',
    data: data
  })
}

// 获取后台用户列表
export function getBackUserList(query) {
  return request({
    url: '/system/backUser/list',
    method: 'get',
    params: query
  })
}

// 保存后台用户列表
export function saveBackUser(data) {
  return request({
    url: '/system/backUser/save',
    method: 'post',
    data: data
  })
}

// 移除后台用户
export function removeBackUser(ids) {
  return request({
    url: `/system/backUser/remove/${ids}`,
    method: 'post'
  })
}

// 获取链接目标集合
export function getGoalUrlInfo() {
  return request({
    url: '/system/openAdvertising/urlGoalList',
    method: 'get'
  })
}

// 查询系统通知
export function getSystemNoticeList(query) {
  return request({
    url: '/system/systemNotice/page',
    method: 'get',
    params: query
  })
}

// 系统通知详情
export function getSystemNoticeDetail(id) {
  return request({
    url: `/system/systemNotice/get/${id}`,
    method: 'get'
  })
}

// 保存系统通知
export function saveSystemNotice(data) {
  return request({
    url: '/system/systemNotice/save',
    method: 'post',
    data: data
  })
}

// 发送系统通知
export function sendSystemNotice(query) {
  return request({
    url: '/system/systemNotice/send',
    method: 'get',
    params: query
  })
}

// 移除系统通知
export function removeSystemNotice(ids) {
  return request({
    url: `/system/systemNotice/remove/${ids}`,
    method: 'get'
  })
}
// 查询会员通知
export function getMemberNoticeList(query) {
  return request({
    url: '/system/memberNotice/page',
    method: 'get',
    params: query
  })
}

// 保存会员通知
export function saveMemberNotice(data) {
  return request({
    url: '/system/memberNotice/save',
    method: 'post',
    data: data
  })
}

// 移除会员通知
export function removeMemberNotice(ids) {
  return request({
    url: `/system/memberNotice/remove/${ids}`,
    method: 'get'
  })
}

// 查询评论管理列表
export function getCommentList(query) {
  return request({
    url: '/system/templateComment/page',
    method: 'get',
    params: query
  })
}

// 评论审核状态统计
export function getCommentApprovalCount() {
  return request({
    url: '/system/templateComment/checkStatusSum',
    method: 'get'
  })
}

// 审核评论信息
export function checkCommentInfo(data) {
  return request({
    url: '/system/templateComment/checkTemplateComment',
    method: 'post',
    data: data
  })
}

// 删除评论信息
export function removeCommentInfo(ids) {
  return request({
    url: `/system/templateComment/remove/${ids}`,
    method: 'get'
  })
}

// 查询举报管理列表
export function getReportList(query) {
  return request({
    url: '/system/templateReport/page',
    method: 'get',
    params: query
  })
}

// 查询举报处理状态统计
export function getReportStatus() {
  return request({
    url: '/system/templateReport/resolveStatusSum',
    method: 'get'
  })
}

// 审核举报信息
export function checkReportStatus(data) {
  return request({
    url: '/system/templateReport/checkTemplateReport',
    method: 'post',
    data: data
  })
}

// 移除举报信息
export function removeReportInfo(ids) {
  return request({
    url: `/system/templateReport/remove/${ids}`,
    method: 'get'
  })
}

// 查询视频&图片模板列表
export function getTemplateList(query) {
  return request({
    url: '/system/template/page',
    method: 'get',
    params: query
  })
}

// 保存视频&图片模板信息
export function saveTemplateInfo(data) {
  return request({
    url: '/system/template/save',
    method: 'post',
    data: data
  })
}

// 移除视频&图片模板信息
export function removeTemplateInfo(ids) {
  return request({
    url: `/system/template/remove/${ids}`,
    method: 'get'
  })
}

// 查询模板分类列表
export function getClassifylist(query) {
  return request({
    url: '/system/templateCategory/page',
    method: 'get',
    params: query
  })
}

// 保存模板分类
export function saveClassifyInfo(data) {
  return request({
    url: '/system/templateCategory/save',
    method: 'post',
    data: data
  })
}

// 移除模板分类
export function removeClassifyInfo(ids) {
  return request({
    url: `/system/templateCategory/remove/${ids}`,
    method: 'get'
  })
}

// 查询推荐模板列表
export function getRecommendTemplateList(query) {
  return request({
    url: '/system/templateRecommend/page',
    method: 'get',
    params: query
  })
}

// 获取推荐模板审核状态统计
export function getRecommendTemplateCount(type) {
  return request({
    url: `/system/templateRecommend/checkStatusSum/${type}`,
    method: 'get'
  })
}

// 审核推荐模板
export function checkRecommendTemplate(data) {
  return request({
    url: '/system/templateRecommend/checkTemplateRecommend',
    method: 'post',
    data: data
  })
}

// 下架推荐模板
export function offlineRecommendTemplate(id) {
  return request({
    url: `/system/templateRecommend/offlineTemplateRecommend/${id}`,
    method: 'get'
  })
}

// 删除推荐模板
export function removeRecommendTemplate(ids) {
  return request({
    url: `/system/templateRecommend/remove/${ids}`,
    method: 'get'
  })
}

// 查询模板的评论列表
export function getCommentListById(id, query) {
  return request({
    url: `/system/templateComment/getTemplateCommentPage/${id}`,
    method: 'get',
    params: query
  })
}

// 获取视频提取模板列表
export function getExtractTemplateList(query) {
  return request({
    url: '/system/extractVideo/extractVideoList',
    method: 'get',
    params: query
  })
}

// 移除视频提取模板列表
export function removeExtractTemplateByIds(ids) {
  return request({
    url: `/system/extractVideo/remove/${ids}`,
    method: 'post'
  })
}

// 保存视频提取模板列表
export function saveExtractTemplate(data) {
  return request({
    url: '/system/extractVideo/saveExtractVideo',
    method: 'post',
    data: data
  })
}

// 获取APP水印设置
export function getAppSetting() {
  return request({
    url: '/system/appInfo/getAppWatermark',
    method: 'get'
  })
}

// 保存APP水印设置
export function saveAppSetting(data) {
  return request({
    url: '/system/appInfo/settingAppWatermark',
    method: 'post',
    data: data
  })
}

// 视频&图片自动审核列表
export function getAutoCheck(query) {
  return request({
    url: '/system/contentSourceCheck/list',
    method: 'get',
    params: query
  })
}

// 删除视频&图片自动审核数据
export function deleteAuthCheck(ids) {
  return request({
    url: `/system/contentSourceCheck/remove/${ids}`,
    method: 'post'
  })
}

// 自动审核状态
export function getAutoCheckStatus(type) {
  return request({
    url: `/system/contentSourceCheck/remove/${type}`,
    method: 'get'
  })
}

// 设置是否开启自动审核
export function saveAuthCheck(data) {
  return request({
    url: '/system/contentSourceCheck/setting',
    method: 'post',
    data
  })
}

// 获取接口统计列表
export function getInterfaceStatisticsList(query) {
  return request({
    url: '/system/new/changeFaceApiDetailList',
    method: 'get',
    params: query
  })
}

// 获取接口使用统计
export function getInterfaceUseStatistics() {
  return request({
    url: '/system/new/apiTotalStatisticsVo',
    method: 'get'
  })
}

// 获取公共接口设置信息
export function getPublicDetail() {
  return request({
    url: '/system/new/globalParamDetail',
    method: 'get'
  })
}

// 保存公共接口设置信息
export function savePublicDetail(data) {
  return request({
    url: '/system/new/saveGlobalParamDetail',
    method: 'post',
    data: data
  })
}

// 获取推广注册用户列表
export function getRegisterUserList(query) {
  return request({
    url: '/system/spreadManager/spreadRegisterUser',
    method: 'get',
    params: query
  })
}

// 推广注册用户新增趋势
export function getUserSpreadStatistics(query) {
  return request({
    url: '/system/spreadManager/spreadStatistics',
    method: 'get',
    params: query
  })
}

// 推广设置-获取推广信息列表
export function getExtendInfoList(query) {
  return request({
    url: '/system/spreadManager/spreadUserInfo',
    method: 'get',
    params: query
  })
}

// 获取推广信息详情
export function getExtendDetail(query) {
  return request({
    url: '/system/spreadManager/spreadUserLevelInfo',
    method: 'get',
    params: query
  })
}

// 获取推广信息提现记录
export function getExtendWithdrawRecord(query) {
  return request({
    url: '/system/spreadManager/withdrawRecord',
    method: 'get',
    params: query
  })
}

// 修改用户收益余额
export function saveEmployeeMoney(data) {
  return request({
    url: '/system/spreadManager/updateUserEmployeeMoney',
    method: 'post',
    data: data
  })
}

// 提现审核
export function checkWithdrawalAudit(data) {
  return request({
    url: '/system/spreadManager/withdrawCheck',
    method: 'post',
    data: data
  })
}

// 获取推广设置
export function getExtendSettingInfo() {
  return request({
    url: '/system/spreadManager/getSpreadSetting',
    method: 'get',
  })
}

// 保存推广设置
export function saveExtendSetting(data) {
  return request({
    url: '/system/spreadManager/spreadSettingSave',
    method: 'post',
    data: data
  })
}

// 推广设置-获取分享设置
export function getExtendShareSetting(data) {
  return request({
    url: '/system/shareManager/getShareSetting',
    method: 'post',
    data: data
  })
}

// 推广设置-保存分享设置
export function saveExtendShareSetting(data) {
  return request({
    url: '/system/shareManager/saveShareSetting',
    method: 'post',
    data: data
  })
}

// 获取数字人介绍
export function getDigitalPeopleInfo(query) {
  return request({
    url: '/system/digitalPeopleInfo/removeDigitalPeopleInfo',
    method: 'GET',
    params: query
  })
}

// 保存数字人介绍
export function saveDigitalPeopleInfo(data) {
  return request({
    url: '/system/digitalPeopleInfo/saveDigitalPeopleInfo',
    method: 'post',
    data: data
  })
}